package com.woniuxy.service.impl;

import com.woniuxy.entity.User;
import com.woniuxy.mapper.UserMapper;
import com.woniuxy.service.UserService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class UserServiceImpl implements UserService {
    private UserMapper userMapper;

    @Override
    public User queryByUsername(User user) {
        return userMapper.queryByUsername(user);
    }

    @Override
    public void updateUserPsw(User user) {
        userMapper.updateUserPsw(user);
    }

    @Override
    public void inPicture(User user) {
        userMapper.inPicture(user);
    }
}
